home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 6 / CU Amiga Magazine's Super CD-ROM 06 (1996)(EMAP Images)(GB)(Track 1 of 4)[!][issue 1997-01].iso / cucd / magazine / executive_v2.00 / data / developers.lzx / SysInfo / include / clib / SysInfo_protos.h
C/C++ Source or Header  |  2002-12-11  |  1KB  |  50 lines

  1. #ifndef CLIB_SYSINFO_PROTOS_H
  2. #define CLIB_SYSINFO_PROTOS_H
  3. /*
  4. **      $VER: SysInfo_protos.h 2.00 (20.10.96)
  5. **      SysInfo Release 2.00
  6. **
  7. **      C prototypes.
  8. **
  9. **      This file is public domain.
  10. **
  11. **      Author: Petri Nordlund <petrin@megabaud.fi>
  12. **
  13. **      $Id: SysInfo_protos.h 1.5 1996/10/01 22:57:22 petrin Exp petrin $
  14. **
  15. */
  16.  
  17. #ifndef EXEC_TYPES_H
  18. #include <exec/types.h>
  19. #endif
  20.  
  21. #ifndef LIBRARIES_SYSINFO_H
  22. #include <libraries/SysInfo.h>
  23. #endif
  24.  
  25. /* init */
  26. struct SysInfo *InitSysInfo(void);
  27. void FreeSysInfo(struct SysInfo *);
  28.  
  29. /* load average */
  30. void GetLoadAverage(struct SysInfo *, struct SI_LoadAverage *);
  31.  
  32. /* id */
  33. LONG GetPid(struct SysInfo *);
  34. LONG GetPpid(struct SysInfo *);
  35. LONG GetPgrp(struct SysInfo *);
  36.  
  37. /* nice */
  38. LONG GetNice(struct SysInfo *, LONG, LONG);
  39. LONG SetNice(struct SysInfo *, LONG, LONG, LONG);
  40.  
  41. /* notify */
  42. struct SI_Notify *AddNotify(struct SysInfo *, WORD, LONG);
  43. void RemoveNotify(struct SysInfo *, struct SI_Notify *);
  44.  
  45. /* cpu usage */
  46. void GetCpuUsage(struct SysInfo *, struct SI_CpuUsage *);
  47. LONG GetTaskCpuUsage(struct SysInfo *, struct SI_TaskCpuUsage *, struct Task *);
  48.  
  49. #endif /* CLIB_SYSINFO_PROTOS_H */
  50.